<?php
namespace SisGG\FinalBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraint as Assert;
use SisGG\FinalBundle\Entity\ProductoVenta;
/**
 * @ORM\Entity
 */
class Plato extends ProductoVenta implements \Serializable
{
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     */
    protected $id;
    
    /**
     * @ORM\ManyToOne(targetEntity="Ingrediente")
     * @ORM\JoinColumn(name="ingrediente_id", referencedColumnName="id")
     */
    private $ingredientes;
    
    public function isPlato(){
        return true;
    }
    /**
     * @return string
     */
    public function serialize()
    {
      return serialize($this->id);
    }

    /**
     * @param string $data
     */
    public function unserialize($data)
    {
      $this->id = unserialize($data);
    }
    

    /**
     * Set id
     *
     * @param integer $id
     * @return Plato
     */
    public function setId($id)
    {
        $this->id = $id;
    
        return $this;
    }

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set ingredientes
     *
     * @param SisGG\FinalBundle\Entity\Ingrediente $ingredientes
     * @return Plato
     */
    public function setIngredientes(\SisGG\FinalBundle\Entity\Ingrediente $ingredientes = null)
    {
        $this->ingredientes = $ingredientes;
    
        return $this;
    }

    /**
     * Get ingredientes
     *
     * @return SisGG\FinalBundle\Entity\Ingrediente 
     */
    public function getIngredientes()
    {
        return $this->ingredientes;
    }
    /**
     * @var string $nombre
     */
    protected $nombre;


    /**
     * Set nombre
     *
     * @param string $nombre
     * @return Plato
     */
    public function setNombre($nombre)
    {
        $this->nombre = $nombre;
    
        return $this;
    }

    /**
     * Get nombre
     *
     * @return string 
     */
    public function getNombre()
    {
        return $this->nombre;
    }
}